package entity

const (
	TableNameSubscribe = "subscribe"
)

type Subscribe struct {
	SubscribeID           string `xorm:"subscribe_id pk not null default '' VARCHAR(1024)"`
	Title                 string `xorm:"title not null default '' VARCHAR(1024)"`
	SubscribeDetail       string `xorm:"subscribe_detail not null default '' VARCHAR(16)"`
	ResourceClass         int    `xorm:"resource_class not null default '' VARCHAR(16)"`
	ResourceURI           string `xorm:"resource_uri not null default '' VARCHAR(1024)"`
	ApplicantName         string `xorm:"applicant_name not null default '' VARCHAR(1024)"`
	ApplicantOrg          string `xorm:"applicant_org not null default '' VARCHAR(1024)"`
	BeginTime             string `xorm:"begin_time not null default '' VARCHAR(1024)"`
	EndTime               string `xorm:"end_time not null default '' VARCHAR(1024)"`
	ReceiveAddr           string `xorm:"receive_addr not null default '' VARCHAR(1024)"`
	ReportInterval        int    `xorm:"report_interval not null default 0 smallint"`
	Reason                string `xorm:"reason not null default '' VARCHAR(1024)"`
	OperateType           int    `xorm:"operate_type not null default 0 smallint"`
	SubscribeStatus       int    `xorm:"subscribe_status not null default 0 smallint"`
	SubscribeCancelOrg    string `xorm:"subscribe_cancel_org not null default '' VARCHAR(1024)"`
	SubscribeCancelPerson string `xorm:"subscribe_cancel_person not null default '' VARCHAR(1024)"`
	CancelTime            string `xorm:"cancel_time not null default '' VARCHAR(1024)"`
	CancelReason          string `xorm:"cancel_reason not null default '' VARCHAR(1024)"`
	ResultImageDeclare    string `xorm:"result_image_declare not null default '' VARCHAR(1024)"`
	ResultFeatureDeclare  string `xorm:"result_feature_declare not null default '' VARCHAR(1024)"`
	TabID                 string `xorm:"tab_id not null default '' VARCHAR(1024)"`
	Ts                    int64  `xorm:"ts not null default 0 bigint"`
	SourceViewID          string `xorm:"source_view_id not null default '' text"`
	TargetViewID          string `xorm:"target_view_id not null default '' text"`
}

func (s Subscribe) TableName() string {
	return TableNameSubscribe
}
